
import Vue from 'vue'
import App from './App'
import router from './router'

// 引入element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

//引入axios
import axios from './axios/axios'

//时间组件
import moment from 'moment/moment'
Vue.filter('moment', function (value, formatString) {
  formatString = formatString || 'YYYY-MM-DD HH:mm:ss';
  return moment(value).format(formatString); // value可以是普通日期 20170723
  // return moment.unix(value).format(formatString); // 这是时间戳转时间
});
import store from './store/store'
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
